/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.appleframework.templates;

import org.appleframework.vfs.FileSystem;

/**
 *
 * @author zhujg
 */
public class TemplateCompiler {

  public static Template compiler(FileSystem file){
    String source = file.contentToString();
    String name = file.getName();
    Template template = new Template(name, source);
    return template;
  }
}
